package etnorservice.etnor_service;

import lombok.extern.slf4j.Slf4j;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.security.servlet.SecurityAutoConfiguration;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.transaction.annotation.EnableTransactionManagement;
import springfox.documentation.swagger2.annotations.EnableSwagger2;

import javax.annotation.PostConstruct;
import javax.sql.DataSource;
import java.sql.Connection;
import java.sql.SQLException;


@SpringBootApplication(exclude = {SecurityAutoConfiguration.class})
//@MapperScan(basePackages = "etnorservice.etnor_service.mapper")
//@ComponentScan(basePackages = "etnorservice.etnor_service")
@EnableTransactionManagement
@Slf4j

public class EtnorServiceApplication {

    public static void main(String[] args) {
        log.info("启动");

        SpringApplication.run(EtnorServiceApplication.class, args);
    }


}
